package com.smartleanx.module.hrm.service.salary;
import com.smartleanx.module.hrm.dal.dataobject.employee.EmployeeDO;
import com.smartleanx.module.hrm.dal.dataobject.salary.HrmSalaryPlan;
import com.smartleanx.module.hrm.dal.mysql.employee.EmployeeMapper;
import com.smartleanx.module.hrm.dal.mysql.salary.HrmSalaryPlanEmployeeMapper;
import com.smartleanx.module.hrm.dal.mysql.salary.HrmSalaryPlanMapper;
import com.smartleanx.module.hrm.dal.mysql.salary.HrmSalaryTableConfigTenantEmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author mybatis-plus
 * @since 2025-01-05
 */
@Service
public class HrmSalaryTableConfigTenantEmployeeServiceImpl  implements HrmSalaryTableConfigTenantEmployeeService {


    @Autowired
    private HrmSalaryTableConfigTenantEmployeeMapper hrmSalaryTableConfigTenantEmployeeMapper;

    @Autowired
    private HrmSalaryPlanEmployeeMapper salaryPlanEmployeeMapper;
    @Autowired
    private HrmSalaryPlanMapper salaryPlanMapper;
    @Autowired
    private EmployeeMapper employeeMapper;


    @Override
    public void generateEmployeeSalary(String date) {

        List<HrmSalaryPlan> hrmSalaryPlans = salaryPlanMapper.selectList(null);
        hrmSalaryPlans.forEach(hrmSalaryPlan -> {

        });


    }


    private int getEmployeeStatus(Integer employeeId) {
        EmployeeDO employeeDO = employeeMapper.selectById(employeeId);
        Integer state = employeeDO.getState();


        return 1;
    }




}
